﻿<UserControl x:Class="FM.Views.电平表视图"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:接口="clr-namespace:FM.接口"
             d:DataContext="{d:DesignInstance Type=接口:电平表1}"
             d:DesignHeight="300"
             d:DesignWidth="300"
             mc:Ignorable="d">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="10" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <ProgressBar Name="Bar1"
                     Margin="10,0"
                     Maximum="{Binding 最大电平}"
                     Minimum="{Binding 最小电平}"
                     Orientation="Vertical"
                     SmallChange="0.01"
                     Value="{Binding 左电平}" />
        <ProgressBar Name="Bar2"
                     Grid.Column="2"
                     Margin="10,0"
                     Foreground="{Binding Foreground,
                                          ElementName=Bar1}"
                     Maximum="{Binding Maximum,
                                       ElementName=Bar1}"
                     Minimum="{Binding Minimum,
                                       ElementName=Bar1}"
                     Orientation="Vertical"
                     SmallChange="0.01"
                     Value="{Binding 右电平}" />
    </Grid>
</UserControl>
